#!/usr/bin/python
# -*- coding: utf-8 -*-  
"""
@Project : hello 
@file : main.py
@Author : shenj
@time : 2025/5/28 15:18
@func :
"""
# main.py
from job_runner import JobRunner
from db_manager import DBManager
from job_monitor import JobMonitor


def main():
    runner = JobRunner()
    monitor = JobMonitor()

    tasks = {
        "icibe": [1275],
        # "drlt": [1270]
    }

    for bu, job_ids in tasks.items():
        db = DBManager().get_connection(bu)
        runner.batch_rerun(db, bu, job_ids)
        monitor.check_rerun_status(db, bu, job_ids)


if __name__ == '__main__':
    main()
